package com.easy.dao;

import com.easy.bean.Order;
import com.easy.bean.OrderAddress;
import com.easy.bean.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDao {

    int addOrder(@Param("order") Order order);

    int addOrderInfo(@Param("orderinfos") List<OrderInfo> orderinfos);

    int addOrderAddress(@Param("orderaddress") OrderAddress orderaddress);
    Order getOrderByID(@Param("id")Integer id);

    int paymentSuccess(@Param("code")String code);

    int cancleOrder();
}
